package com.ps.controller;


import com.ps.pojo.LineInfo;
import com.ps.service.LineInfoService;
import com.ps.utils.Result;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 线路信息表 前端控制器
 * </p>
 *
 * @author ${author}
 * @since 2020-12-18
 */
@RestController
@RequestMapping("/gn/xlgl")
public class LineInfoController {
    @Resource
    private LineInfoService lineInfoService;
    @PostMapping("/getAll")
    @ResponseBody
    public Result getAll(){
        List<LineInfo> all = lineInfoService.getAll();
        return Result.success(all);
    }
}

